{extend name='admin@public/content'}

{block name='content'}
<form onsubmit="return false;" action="" data-auto="true" method="post" class='form-horizontal layui-form' style='padding-top:20px'>
    {if isset($vo['id'])}
    <input type="hidden" name="id" value="{$vo.id}">
    {else}
    <input type="hidden" name="create_at" value="{:date('Y-m-d H:i:s')}">
    {/if}
    <input type="hidden" name="pid" value="{$vo.pid ?: $pid}">



    <div class="form-group">
        <label class="col-sm-2 control-label">城市数量：<span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="text" name="content[city]" required placeholder="请输入" class="layui-input" value="{$vo.content.city ?: ''}">
            <p class="help-block"></p>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">项目数量：<span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="text" name="content[project]" required placeholder="请输入" class="layui-input" value="{$vo.content.project ?: ''}">
            <p class="help-block"></p>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">合作伙伴：<span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="text" name="content[partner]" required placeholder="请输入" class="layui-input" value="{$vo.content.partner ?: ''}">
            <p class="help-block"></p>
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="col-sm-8 col-sm-offset-2">
        <div class="layui-form-item text-left">
            <button class="layui-btn" type="submit">保存</button>
        </div>
    </div>
</form>

{/block}
{block name="script"}
<script>
    window.form.render();

</script>
{/block}